package router

import (
	"jgt-wallet/src/context"
	"jgt-wallet/src/controller/srv"

	"github.com/facebookgo/inject"
	"github.com/teambition/gear"
)

// SrvUtilsMap 注册路由映射
func SrvUtilsMap(g *inject.Graph, router *gear.Router) {
	a := new(srv.Utils)
	err := g.Provide(&inject.Object{Value: a})
	if err != nil {
		panic(err)
	}
	router.Get("/utils/orderId", context.WrapContext(a.GenerateOrderId))
}
